package com.back.campus_back.service;
import com.back.campus_back.domain.Goods;
import com.back.campus_back.domain.User;
import com.back.campus_back.domain.WantedGoods;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-04-17
 */
public interface WantedGoodsService extends IService<WantedGoods> {
    /*
     * 查询全部求购
     * */
    public List<WantedGoods> AllWantsGoods();

    /*
     * 查询全部求购：分页
     * */
    public IPage<WantedGoods> AllWantsGoods(Integer current, Integer size);

    /*
     * 根据用户的id查询用户发布的商品信息
     * */
    public IPage<WantedGoods> findWantedGoodsByStuId(Integer student_id, Integer current, Integer size);

    /*
     * 发布求购
     * */
    public String insertWantedGoods(WantedGoods wantedGoods);

    /*
     * 用户更新求购信息
     * */
    public String updateWantedGoods(WantedGoods wantedGoods);


    /*
     * 删除求购信息
     * */
    public String deleteWantedGoodsById(Integer want_id);





}
